package com.example.springboot.service;

import com.example.springboot.controller.request.BasePageRequest;
import com.example.springboot.entity.Bike;
import com.example.springboot.entity.Hire;

import java.util.List;

/**
 * ClassName:BikeService
 * Package:com.example.springboot.service
 * Description:
 *
 * @Author: Gao
 * @Create: 2023/2/6 - 19:16
 */
public interface BikeService {

    List<Bike> list();

    Object page(BasePageRequest basePageRequest);

    void save(Bike bike);

    Bike getById(int id);

    void update(Bike bike);

    void deleteById(int id);

    Bike getByName(String name);
}
